package edu.hku.c3330.hkucompanion.manager;

import java.util.ArrayList;
import java.util.List;

public class Course 
{
	List<Assessment> assessments;
	String name;
	String description;
	String instructor;
	String courseCode;
	long courseId = -1;

	public List<Assessment> getAssessments() {
		return assessments;
	}

	public String getName() {
		return name;
	}

	public String getDescription() {
		return description;
	}

	public String getInstructor() {
		return instructor;
	}

	public String getCourseCode() {
		return courseCode;
	}
	
	public long getCourseId()
	{
		return courseId;
	}

	public Course(String name, String description, String instructor, String courseCode)
	{
		this.name = name;
		this.description = description;
		this.instructor = instructor;
		this.courseCode = courseCode;
		assessments = new ArrayList<Assessment>();
	}
	
	public void setAssessments(List<Assessment> assessments)
	{
		this.assessments = assessments;
	}
	
	public void addAssessment(Assessment assessment)
	{
		assessments.add(assessment);
	}
	
	public void setDatabaseCourseId(long courseId)
	{
		this.courseId = courseId;
	}

}
